import request from '@/utils/request'
export function addQuestionToWork(workTemplateId, questionId,score) {
    const fd = new FormData()
    fd.set('questionId', questionId)
    fd.set('score', score)
    return request.post(`work/${workTemplateId}/question`, fd)
  }

  export function getQuestionToWork(workTemplateId, questionId) {
    return request.get(`work/${workTemplateId}/question?questionId=${questionId}`)
  }

  export function delQuestion(ids) {
    return request.delete("work", {
      data: {
        ids: ids
      }
    });
  }